//
// Created by yyy on 24-9-14.
//

#include "create_tablt_sql_define.hpp"

CreateTableSqlDefine::CreateTableSqlDefine() {
    this->status_map = new std::unordered_map<std::string, std::string>;
}

CreateTableSqlDefine::~CreateTableSqlDefine() {
    delete this->columns;
    delete this->status_map;
}

Column::Column(SQL_TYPE sqlType) {
    this->sqlType = sqlType;
}

std::string Column::javaType() const {
    switch (this->sqlType) {
        case SQL_TYPE::TEXT: return "String";
        case  SQL_TYPE::INTEGER: return "int";
    }
    return "ERROR";
}

